// pages/productdata/productdata.js

var operation = 
{
  data:
  {
    info:
    {
      currentProduct: { name: "产品名字", images: ["../../image/icon_small.png", "../../image/1.jpg"] },
      indicatorDots: true,
      autoPlay: false,
      interval: false,
      duration: 300,
      otherProduct:
      [
        { name: "名字1", images: ["../../image/kefu.png", "../../image/1.jpg"]},
        { name: "名字2", images: ["../../image/kefu.png", "../../image/1.jpg"] },
        { name: "名字3", images: ["../../image/kefu.png", "../../image/1.jpg"] },
      ]
    }
  }
}


function onClickItemIvk(event)
{
  console.log(event.currentTarget.dataset.item.name);
  var info = this.data.info;
  info.currentProduct = event.currentTarget.dataset.item;
  info.indicatorDots = false;

  this.setData({info:info});
}

operation.onClickItemIvk = onClickItemIvk;
Page(operation)